def change():
    with open(r'C:\Users\汐\Desktop\笔记\知识树\新建文件夹\brop.txt', 'r', encoding='utf-8') as f:
        r=f.read().replace('\n','\\\\r\\\\n').replace('''\"''','''&quot;''')
        print(r)
change()